﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Camc.Quality.Migrations
{
    public partial class add_techPro : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "Property",
                table: "TechniqueEntities",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ParamCode",
                table: "FormBases",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ParamCode_DisplayName",
                table: "FormBases",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "ParamCode_Enable",
                table: "FormBases",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<int>(
                name: "ParamCode_Property",
                table: "FormBases",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<bool>(
                name: "ParamCode_Show",
                table: "FormBases",
                nullable: false,
                defaultValue: false);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Property",
                table: "TechniqueEntities");

            migrationBuilder.DropColumn(
                name: "ParamCode",
                table: "FormBases");

            migrationBuilder.DropColumn(
                name: "ParamCode_DisplayName",
                table: "FormBases");

            migrationBuilder.DropColumn(
                name: "ParamCode_Enable",
                table: "FormBases");

            migrationBuilder.DropColumn(
                name: "ParamCode_Property",
                table: "FormBases");

            migrationBuilder.DropColumn(
                name: "ParamCode_Show",
                table: "FormBases");
        }
    }
}
